<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">/*
  Generated by kissy-xtemplate.*/
KISSY.add('date/picker/month-panel/month-panel-xtpl', function () {
    return function (scopes, S, undefined) {
        var buffer = &quot;&quot;,
            config = this.config,
            engine = this,
            utils = config.utils;
        var runBlockCommandUtil = utils[&quot;runBlockCommand&quot;],
            getExpressionUtil = utils[&quot;getExpression&quot;],
            getPropertyOrRunCommandUtil = utils[&quot;getPropertyOrRunCommand&quot;];
        buffer += '&lt;div class=&quot;';
        var config1 = {};
        var params2 = [];
        params2.push('header');
        config1.params = params2;
        var id0 = getPropertyOrRunCommandUtil(engine, scopes, config1, &quot;getBaseCssClasses&quot;, 0, 1, true, undefined);
        buffer += id0;
        buffer += '&quot;&gt;\r\n    &lt;a id=&quot;ks-date-picker-month-panel-previous-year-btn-';
        var id3 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 2, undefined, false);
        buffer += getExpressionUtil(id3, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config5 = {};
        var params6 = [];
        params6.push('prev-year-btn');
        config5.params = params6;
        var id4 = getPropertyOrRunCommandUtil(engine, scopes, config5, &quot;getBaseCssClasses&quot;, 0, 3, true, undefined);
        buffer += id4;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id7 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;previousYearLabel&quot;, 0, 6, undefined, false);
        buffer += getExpressionUtil(id7, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n\r\n\r\n        &lt;a class=&quot;';
        var config9 = {};
        var params10 = [];
        params10.push('year-select');
        config9.params = params10;
        var id8 = getPropertyOrRunCommandUtil(engine, scopes, config9, &quot;getBaseCssClasses&quot;, 0, 11, true, undefined);
        buffer += id8;
        buffer += '&quot;\r\n           role=&quot;button&quot;\r\n           href=&quot;#&quot;\r\n           hidefocus=&quot;on&quot;\r\n           title=&quot;';
        var id11 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;yearSelectLabel&quot;, 0, 15, undefined, false);
        buffer += getExpressionUtil(id11, true);
        buffer += '&quot;\r\n           id=&quot;ks-date-picker-month-panel-year-select-';
        var id12 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 16, undefined, false);
        buffer += getExpressionUtil(id12, true);
        buffer += '&quot;&gt;\r\n            &lt;span id=&quot;ks-date-picker-month-panel-year-select-content-';
        var id13 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 17, undefined, false);
        buffer += getExpressionUtil(id13, true);
        buffer += '&quot;&gt;';
        var id14 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;year&quot;, 0, 17, undefined, false);
        buffer += getExpressionUtil(id14, true);
        buffer += '&lt;/span&gt;\r\n            &lt;span class=&quot;';
        var config16 = {};
        var params17 = [];
        params17.push('year-select-arrow');
        config16.params = params17;
        var id15 = getPropertyOrRunCommandUtil(engine, scopes, config16, &quot;getBaseCssClasses&quot;, 0, 18, true, undefined);
        buffer += id15;
        buffer += '&quot;&gt;x&lt;/span&gt;\r\n        &lt;/a&gt;\r\n\r\n    &lt;a id=&quot;ks-date-picker-month-panel-next-year-btn-';
        var id18 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 21, undefined, false);
        buffer += getExpressionUtil(id18, true);
        buffer += '&quot;\r\n       class=&quot;';
        var config20 = {};
        var params21 = [];
        params21.push('next-year-btn');
        config20.params = params21;
        var id19 = getPropertyOrRunCommandUtil(engine, scopes, config20, &quot;getBaseCssClasses&quot;, 0, 22, true, undefined);
        buffer += id19;
        buffer += '&quot;\r\n       href=&quot;#&quot;\r\n       role=&quot;button&quot;\r\n       title=&quot;';
        var id22 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;nextYearLabel&quot;, 0, 25, undefined, false);
        buffer += getExpressionUtil(id22, true);
        buffer += '&quot;\r\n       hidefocus=&quot;on&quot;&gt;\r\n    &lt;/a&gt;\r\n&lt;/div&gt;\r\n&lt;div class=&quot;';
        var config24 = {};
        var params25 = [];
        params25.push('body');
        config24.params = params25;
        var id23 = getPropertyOrRunCommandUtil(engine, scopes, config24, &quot;getBaseCssClasses&quot;, 0, 29, true, undefined);
        buffer += id23;
        buffer += '&quot;&gt;\r\n    &lt;table class=&quot;';
        var config27 = {};
        var params28 = [];
        params28.push('table');
        config27.params = params28;
        var id26 = getPropertyOrRunCommandUtil(engine, scopes, config27, &quot;getBaseCssClasses&quot;, 0, 30, true, undefined);
        buffer += id26;
        buffer += '&quot; cellspacing=&quot;0&quot; role=&quot;grid&quot;&gt;\r\n        &lt;tbody id=&quot;ks-date-picker-month-panel-tbody-';
        var id29 = getPropertyOrRunCommandUtil(engine, scopes, {}, &quot;id&quot;, 0, 31, undefined, false);
        buffer += getExpressionUtil(id29, true);
        buffer += '&quot;&gt;\r\n        ';
        var config31 = {};
        var params32 = [];
        params32.push('date/picker/month-panel/months-xtpl');
        config31.params = params32;
        var id30 = getPropertyOrRunCommandUtil(engine, scopes, config31, &quot;include&quot;, 0, 32, false, undefined);
        buffer += id30;
        buffer += '\r\n        &lt;/tbody&gt;\r\n    &lt;/table&gt;\r\n&lt;/div&gt;';
        return buffer;
    }
});</pre>
</body>
</html>
